<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Exports</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="class.reflection.html">« Reflection</a></li>
      <li style="float: right;"><a href="reflection.getmodifiernames.html">Reflection::getModifierNames »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.reflection.html">Reflection</a></li>
    <li>Exports</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="reflection.export" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Reflection::export</h1>
  <p class="verinfo">(PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">Reflection::export</span> &mdash; <span class="dc-title">Exports</span></p>

 </div>

 <div id="reflection.export-refsynopsisdiv">
   <div class="warning"><strong class="warning">警告</strong><p class="simpara">本函数已自 PHP 7.4.0
起<em class="emphasis">弃用</em>，自 PHP 8.0.0 起<em class="emphasis">移除</em>。强烈建议不要依赖本函数。</p></div>
 </div>

 <div class="refsect1 description" id="refsect1-reflection.export-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>Reflection::export</strong></span>(<span class="methodparam"><span class="type"><a href="class.reflector.html" class="type Reflector">Reflector</a></span> <code class="parameter">$reflector</code></span>, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$return</code><span class="initializer"> = <strong><code>false</code></strong></span></span>): <span class="type">string</span></div>

  <p class="para rdfs-comment">
   导出反射（reflection）。
  </p>

  <div class="warning"><strong class="warning">警告</strong><p class="simpara">本函数还未编写文档，仅有参数列表。</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-reflection.export-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">reflector</code></dt>

     <dd>

      <p class="para">
       导出的反射。
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">return</code></dt>

     <dd>

      <p class="para">
       设为 <strong><code>true</code></strong> 时返回导出结果，设为 <strong><code>false</code></strong>（默认值）则忽略返回。
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflection.export-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   如果参数 <code class="parameter">return</code> 
设为 <strong><code>true</code></strong>，导出结果将作为 <span class="type">string</span>
返回，否则返回 <strong><code>null</code></strong>。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflection.export-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="reflection.getmodifiernames.html" class="methodname" rel="rdfs-seeAlso">Reflection::getModifierNames()</a> - 获取修饰符的名称</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>